matrix([[1, 2, 3],
[4, 5, 6]])
2025-03-04
for-loops)Different data types (dtype) are valid
type followed by bit (8, 16, 32, 64, 128)
2:10:2)0.2linspace and logspacespike_simulationnanWhat could this be?
\(sin(250 x) \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x - \mu)^2}{2\sigma^2}}\)
import matplotlib.pyplot as plt
time = np.linspace(start=0, stop=0.5, num=2000)
mu, sigma = 0.25, 0.01
sinewave = np.sin(time * 250 * np.pi)
gaussian = (1 / (np.sqrt(2 * np.pi * np.square(sigma))) *
np.exp(-(np.square(time - mu) /np.square(2 * sigma))))
plt.plot(time, gaussian * sinewave)
plt.show()